import { IProspect } from "@/components/Customer/index";
const ProspectStore = {
  namespaced: true,
  state: {
    step: -1,
    selectedProspect: null,
    prospectList: [],
  },
  mutations: {
    setProspectList: (state: any, prospectList: object) => {
      state.prospectList = prospectList;
    },
    setSelectedProspect(
      state: { selectedProspect: IProspect },
      prospect: IProspect
    ) {
      state.selectedProspect = prospect;
    },
    setStep(state: { step: number }, step: number) {
      state.step = step;
    },
  },
};

export { ProspectStore };
